<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">


    <title>H+ 后台主题UI框架 - Bootstrap3 Markdown编辑器</title>
    <meta name="keywords" content="H+后台主题,后台bootstrap框架,会员中心主题,后台HTML,响应式后台">
    <meta name="description" content="H+是一个完全响应式，基于Bootstrap3最新版本开发的扁平化主题，她采用了主流的左右两栏式布局，使用了Html5+CSS3等现代技术">

    <link rel="shortcut icon" href="favicon.ico">

    <link href="../../static/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="../../static/css/animate.css" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="../../static/css/plugins/markdown/bootstrap-markdown.min.css" />
    <link href="../../static/css/style.css?v=4.0.0" rel="stylesheet"><base target="_blank">

    <script src="../../static/js/jquery.min.js?v=2.1.4"></script>
    <script src="../../static/js/jquery-ui-1.10.4.min.js"></script>

    <link href="../../static/css/bootstrap.min.css?v=3.3.5" rel="stylesheet">
    <script src="../../static/js/bootstrap.min.js?v=3.3.5"></script>

    <script src="../../static/js/moment-with-locales.min.js"></script>
    <link href="../../static/css/bootstrap-datetimepicker.min.css" rel="stylesheet">
    <script src="../../static/js/bootstrap-datetimepicker.min.js"></script>
</head>
<body class="gray-bg">
    <div class="wrapper wrapper-content">
        <div class="row">
            <div class="col-lg-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>报告发布接口调试</h5>
                        <div class="ibox-tools">
                            <a class="collapse-link">
                                <i class="fa fa-chevron-up"></i>
                            </a>
                            <a class="dropdown-toggle" data-toggle="dropdown" href="form_editors.html#">
                                <i class="fa fa-wrench"></i>
                            </a>
                        </div>
                        <div class="ibox-content">
                            <form role="form" class="form-horizontal m-t" id="generateXML" target="_self">
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">接口名称：</label>
                                    <div class="col-sm-2">
                                        <p class="form-control-static">获取报告接口</p>
                                    </div>
                                    <label class="col-sm-2 control-label">接口编码：</label>
                                    <div class="col-sm-2">
                                        <input id="MsgCode" type="text" name="MsgCode" class="form-control" value="BG01" readonly="readonly">
                                    </div>
                                </div>
                                <hr>
                                <div class="form-group ">
                                    <label class="col-sm-2 control-label">报告单申请号：</label>
                                    <div class="col-sm-2">
                                        <input id="repno" type="text" name="repno" class="form-control XMLState" placeholder="报告单申请号">
                                    </div>
                                    <label class="col-sm-1 control-label">原始申请号：</label>
                                    <div class="col-sm-2">
                                        <input id="reqno" type="text" name="reqno" class="form-control XMLState" placeholder="原始申请号">
                                    </div>
                                    <label class="col-sm-1 control-label">系统标志：</label>
                                    <div class="col-sm-2">
                                        <input id="xtbz" type="text" name="xtbz" class="form-control XMLState" placeholder="0：门诊 1：住院 3：体检">
                                    </div>
                                </div>
                                <div class="form-group ">
                                    <label class="col-sm-2 control-label">报告单类别编码：</label>
                                    <div class="col-sm-2">
                                        <input id="replb" type="text" name="replb" class="form-control XMLState" placeholder="报告单类别编码">
                                    </div>
                                    <label class="col-sm-1 control-label">类别名称：</label>
                                    <div class="col-sm-2">
                                        <input id="replbmc" type="text" name="replbmc" class="form-control XMLState" placeholder="类别名称">
                                    </div>
                                </div>
                                <div class="form-group ">
                                    <label class="col-sm-2 control-label">首页序号：</label>
                                    <div class="col-sm-2">
                                        <input id="syxh" type="text" name="syxh" class="form-control XMLState" placeholder="首页序号">
                                    </div>
                                    <label class="col-sm-1 control-label">报告单日期：</label>
                                    <div class="col-sm-2">
                                        <input id="reprq" type="text" name="reprq" class="form-control XMLState" placeholder="样式：2020-02-03 15:26:34">
                                    </div>
                                </div>
                                <hr>
                                <div class="form-group ">
                                    <label class="col-sm-2 control-label">病人内码：</label>
                                    <div class="col-sm-2">
                                        <input id="patid" type="text" name="patid" class="form-control XMLState" placeholder="病人内码">
                                    </div>
                                    <label class="col-sm-1 control-label">病历号：</label>
                                    <div class="col-sm-2">
                                        <input id="blh" type="text" name="blh" class="form-control XMLState" placeholder="病历号">
                                    </div>
                                    <label class="col-sm-1 control-label">卡号：</label>
                                    <div class="col-sm-2">
                                        <input id="cardno" type="text" name="cardno" class="form-control XMLState" placeholder="卡号">
                                    </div>
                                </div>
                                <div class="form-group ">
                                    <label class="col-sm-2 control-label">患者姓名：</label>
                                    <div class="col-sm-2">
                                        <input id="hzxm" type="text" name="hzxm" class="form-control XMLState" placeholder="患者姓名">
                                    </div>
                                    <label class="col-sm-1 control-label">性别：</label>
                                    <div class="col-sm-2">
                                        <input id="sex" type="text" name="sex" class="form-control XMLState" placeholder="性别">
                                    </div>
                                    <label class="col-sm-1 control-label">年龄：</label>
                                    <div class="col-sm-2">
                                        <input id="age" type="text" name="age" class="form-control XMLState" placeholder="年龄">
                                    </div>
                                </div>
                                <hr>
                                <div class="form-group ">
                                    <label class="col-sm-2 control-label">传染标志：</label>
                                    <div class="col-sm-2">
                                        <input id="crbz" type="text" name="crbz" class="form-control XMLState" placeholder="传染标志">
                                    </div>
                                    <label class="col-sm-1 control-label">危机标志：</label>
                                    <div class="col-sm-2">
                                        <input id="wjbz" type="text" name="wjbz" class="form-control XMLState" placeholder="危机标志">
                                    </div>
                                    <label class="col-sm-1 control-label">设备名称：</label>
                                    <div class="col-sm-2">
                                        <input id="instname" type="text" name="instname" class="form-control XMLState" placeholder="设备名称">
                                    </div>
                                </div>
                                <div class="form-group ">
                                    <label class="col-sm-2 control-label">病区编码：</label>
                                    <div class="col-sm-2">
                                        <input id="bqdm" type="text" name="bqdm" class="form-control XMLState" placeholder="病区编码">
                                    </div>
                                    <label class="col-sm-1 control-label">病区名称：</label>
                                    <div class="col-sm-2">
                                        <input id="bqmc" type="text" name="bqmc" class="form-control XMLState" placeholder="病区名称">
                                    </div>
                                    <label class="col-sm-1 control-label">床位号：</label>
                                    <div class="col-sm-2">
                                        <input id="cwdm" type="text" name="cwdm" class="form-control XMLState" placeholder="床位号">
                                    </div>
                                </div>
                                <div class="form-group ">
                                    <label class="col-sm-2 control-label">送检科室名称：</label>
                                    <div class="col-sm-2">
                                        <input id="sjksmc" type="text" name="sjksmc" class="form-control XMLState" placeholder="送检科室名称">
                                    </div>
                                    <label class="col-sm-1 control-label">送检科室代码：</label>
                                    <div class="col-sm-2">
                                        <input id="sjksdm" type="text" name="sjksdm" class="form-control XMLState" placeholder="送检科室代码">
                                    </div>
                                    <label class="col-sm-1 control-label">送检日期：</label>
                                    <div class="col-sm-2">
                                        <input id="sjrq" type="text" name="sjrq" class="form-control XMLState" placeholder="2021-03-24 02:45">
                                    </div>
                                </div>
                                <div class="form-group ">
                                    <label class="col-sm-2 control-label">送检医生姓名：</label>
                                    <div class="col-sm-2">
                                        <input id="sjysxm" type="text" name="sjysxm" class="form-control XMLState" placeholder="送检医生姓名">
                                    </div>
                                    <label class="col-sm-1 control-label">送检医生代码：</label>
                                    <div class="col-sm-2">
                                        <input id="sjysdm" type="text" name="sjysdm" class="form-control XMLState" placeholder="送检医生代码">
                                    </div>

                                </div>
                                <div class="form-group ">
                                    <label class="col-sm-2 control-label">检查医生姓名：</label>
                                    <div class="col-sm-2">
                                        <input id="jcysxm" type="text" name="jcysxm" class="form-control XMLState" placeholder="检查医生姓名">
                                    </div>
                                    <label class="col-sm-1 control-label">检查医生代码：</label>
                                    <div class="col-sm-2">
                                        <input id="jcysdm" type="text" name="jcysdm" class="form-control XMLState" placeholder="检查医生代码">
                                    </div>
                                    <label class="col-sm-1 control-label">检查部位：</label>
                                    <div class="col-sm-2">
                                        <input id="jcbw" type="text" name="jcbw" class="form-control XMLState" placeholder="检查部位">
                                    </div>
                                </div>
                                <div class="form-group ">
                                    <label class="col-sm-2 control-label">检查科室名称：</label>
                                    <div class="col-sm-2">
                                        <input id="jcksmc" type="text" name="jcksmc" class="form-control XMLState" placeholder="检查科室名称">
                                    </div>
                                    <label class="col-sm-1 control-label">检查科室代码：</label>
                                    <div class="col-sm-2">
                                        <input id="jcksdm" type="text" name="jcksdm" class="form-control XMLState" placeholder="检查科室代码">
                                    </div>
                                </div>
                                <div class="form-group ">
                                    <label class="col-sm-2 control-label">书写医生姓名：</label>
                                    <div class="col-sm-2">
                                        <input id="lrysxm" type="text" name="lrysxm" class="form-control XMLState" placeholder="书写医生姓名">
                                    </div>
                                    <label class="col-sm-1 control-label">书写医生代码：</label>
                                    <div class="col-sm-2">
                                        <input id="lrysdm" type="text" name="lrysdm" class="form-control XMLState" placeholder="书写医生代码">
                                    </div>
                                    <label class="col-sm-1 control-label">发布日期：</label>
                                    <div class="col-sm-2">
                                        <input id="pubtime" type="text" name="pubtime" class="form-control XMLState" placeholder="2021-04-08 02:47:29">
                                    </div>
                                </div>
                                <div class="form-group ">
                                    <label class="col-sm-2 control-label">审核医生姓名：</label>
                                    <div class="col-sm-2">
                                        <input id="shysxm" type="text" name="shysxm" class="form-control XMLState" placeholder="审核医生姓名">
                                    </div>
                                    <label class="col-sm-1 control-label">审核医生代码：</label>
                                    <div class="col-sm-2">
                                        <input id="shysdm" type="text" name="shysdm" class="form-control XMLState" placeholder="审核医生代码">
                                    </div>

                                    <label class="col-sm-1 control-label">婴儿序号：</label>
                                    <div class="col-sm-2">
                                        <input id="yexh" type="text" name="yexh" class="form-control XMLState" placeholder="婴儿序号">
                                    </div>
                                </div>
                                <div class="hr-line-dashed"></div>
                                <div class="form-group ">
                                    <div class="col-sm-12 col-sm-offset-4">
                                        <button class="btn btn-primary" type="submit">生成报文</button>
                                        <button class="btn btn-white" id="clear1" type="clear">重置</button>
                                    </div>
                                </div>
                            </form>
                            <div class="clearfix"></div>
                        </div>
                    </div>
                </div>
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>xml请求报告</h5>
                        <div class="ibox-tools">
                            <a class="collapse-link">
                                <i class="fa fa-chevron-up"></i>
                            </a>
                            <a class="dropdown-toggle" data-toggle="dropdown" href="form_editors.html#">
                                <i class="fa fa-wrench"></i>
                            </a>
                        </div>
                    </div>
                    <div class="ibox-content">
                      <pre id="toastrOptions" contenteditable="" name="content" data-provide="markdown" rows="25">
                      </pre>
                        <div class="clearfix"></div>
                        <br>
                        <div class="form-group ">
                            <div class="col-sm-12 col-sm-offset-4">
                                <button class="btn btn-primary" id="submit1">提交</button>
                                <button class="btn btn-white" id="reset" type="submit">重置</button>
                            </div>
                        </div>
                        <br>
                    </div>
                </div>
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>返回接口信息</h5>
                        <div class="ibox-tools">
                            <a class="collapse-link">
                                <i class="fa fa-chevron-up"></i>
                            </a>
                            <a class="dropdown-toggle" data-toggle="dropdown" href="form_editors.html#">
                                <i class="fa fa-wrench"></i>
                            </a>
                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="form-group ">
                            <div class="col-sm-12 col-sm-offset-4">
                                <button class="btn btn-primary" id="clear2" type="submit">清空</button>
                            </div>
                        </div>
                        <div class="clearfix"></div>
                        <div class="row m-t-lg">
                            <div class="col-lg-12">
                                <pre id="toastrOptions2" class="p-m"></pre>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <script src="../../static/js/content.js?v=1.0.0"></script>
    <script type="text/javascript" src="../../static/js/plugins/markdown/markdown.js"></script>
    <script type="text/javascript" src="../../static/js/plugins/markdown/to-markdown.js"></script>
    <script type="text/javascript" src="../../static/js/plugins/markdown/bootstrap-markdown.js"></script>
    <script type="text/javascript" src="../../static/js/plugins/markdown/bootstrap-markdown.zh.js"></script>
    <script src="../../static/js/plugins/beautifyhtml/beautifyhtml.js"></script>
    <script src="../../static/js/plugins/validate/jquery.validate.min.js"></script>
    <script src="../../static/js/plugins/validate/messages_zh.min.js"></script>
    <script src="../../static/js/demo/form-validate-demo.js"></script>
    <script src="../../static/js/commonrequest.js"></script>
    <script type="text/javascript">

        $("#clear1").click(function(){
            $(".XMLState").each(function(){
                $(this).val("");
                $("#toastrOptions").html("");
            });
        });

        $("#reset").click(function(){
            $("#toastrOptions").html("");
        });

        $("#submit1").click(function(){
            var method=$('#MsgCode').val();
            var xml=$("#toastrOptions").html();
            var hisId=$("#repno").val();
            var param = {
                method: method,
                requestParam:xml,
                hisId:hisId
            }
            var url = '/hisInterface/getWebServiceResult'
            ajaxPostWithToken(url, param, function (data) {
                console.info(data);
                if (data.code == 200) {
                    $("#toastrOptions2").html(data.data);
                } else {
                }
            })
        });

        $(function(){
            $('#reprq').datetimepicker({
                format: 'YYYY-MM-DD hh:mm:ss',
                locale: moment.locale('zh-cn')
            });

            $('#sjrq').datetimepicker({
                format: 'YYYY-MM-DD hh:mm',
                locale: moment.locale('zh-cn')
            });

            $('#pubtime').datetimepicker({
                format: 'YYYY-MM-DD hh:mm:ss',
                locale: moment.locale('zh-cn')
            });
        });
    </script>
    <script src="../../static/js/funtionTools.js"></script>
</body>
</html>
